package com.foolishbird.sdk.ui.view;

import android.content.Context;
import android.util.AttributeSet;


import com.foolishbird.sdk.params.bean.RedCash;
import com.foolishbird.sdk.params.bean.RedpackageNoticeModel;

import java.util.List;


/**
 * 作者：liuwanlin
 * 创建日期：16/7/1
 */
public class ScollRedTextView extends BaseScollTextView<RedCash> {
    public ScollRedTextView(Context context) {
        super(context);
    }

    public ScollRedTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public String getItemText(List<RedCash> data, int postion) {
        RedCash cash =data.get(postion);

        return cash.getPrefixTitle()+"<font color=#e63624>"+cash.getAmount()+"</font>"+cash.getSuffixTitle();
    }
}
